import 'package:flutter/material.dart';

class ProfilePage extends StatelessWidget {
  final avatarUrl =
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F33%2F41%2F10%2F334110abdd1877a4f9991b693c2bdda8.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1649945505&t=3733e687c4e3c5a579a8a7eeec910a66";
  final avatarUrl2 =
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F3c%2F12%2F4c%2F3c124c5277386c897dad2977bb964ea1.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1649945826&t=62067c87fb93cffd82d6ba86e33b5951";

  const ProfilePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: [
          UserAccountsDrawerHeader(
            currentAccountPicture: CircleAvatar(
              backgroundImage: NetworkImage(avatarUrl),
            ),
            accountName: Text("accountName"),
            accountEmail: Text("accountEmail"),
          ),
          Align(
            child: ClipOval(
              child: SizedBox(
                width: 80.0,
                height: 80.0,
                child: Image.network(
                  avatarUrl2,
                  fit: BoxFit.fill,
                ),
              ),
            ),
          ),
          Align(
              child: Container(
                width: 80.0,
                height: 80.0,
                decoration: BoxDecoration(
                  shape: BoxShape.circle,
                  image: DecorationImage(
                    fit: BoxFit.fill,
                    image: NetworkImage(
                      "http://img8.zol.com.cn/bbs/upload/23765/23764201.jpg",
                    ),
                  ),
                ),
              )
          ),

        ],
      ),
    );
  }
}
